package cn.kailangtu.myapplication.events;

/**
 * 关闭虚拟键盘的事件类，用于返回输入结果
 */
public class CloseKeyboardEvent {
    private String result; // 输入结果
    private boolean isConfirmed; // 是否确认输入（true为确认，false为取消）
    private int requestCode; // 请求码，与打开时的请求码对应

    public CloseKeyboardEvent(String result, boolean isConfirmed, int requestCode) {
        this.result = result;
        this.isConfirmed = isConfirmed;
        this.requestCode = requestCode;
    }

    // Getters
    public String getResult() {
        return result;
    }

    public boolean isConfirmed() {
        return isConfirmed;
    }

    public int getRequestCode() {
        return requestCode;
    }

}

